package day10.one02;

public class text {
    public static void main(String[] args) {
        student st = new student();
        st.setName("魏鑫");
        st.setAge(21);

        teacher tr = new teacher();
        tr.setName("马云");
        tr.setAge(99);

        System.out.println(st.getName());
        System.out.println(st.getAge());
        st.study();
        System.out.println(tr.getName());
        System.out.println(tr.getAge());
        tr.teach();
    }
}
